﻿using System;
using System.Collections.Generic;
using System.Text;
using AspNetCs.Model;
using System.Data;

namespace AspNetCs.IDAL
{
    public interface ICemetery
    {
        int Add(Cemetery_Model md);
        Cemetery_Model GetModel(DataRow dr);
        DataTable GetDataTable(string filter);
        int delete(string filter);

        /// <summary>
        /// 设置推荐或者取消推荐
        /// </summary>
        /// <param name="Id"></param>
        /// <param name="CancleOrIntro">1表示设置推荐 0表示取消推荐</param>
        /// <returns></returns>
        int SetIntro(int Id, int CancleOrIntro);

        /// <summary>
        /// 审核或者取消审核
        /// </summary>
        /// <param name="Id"></param>
        /// <param name="CancleOrIntro">1表示审核 0表示取消审核</param>
        /// <returns></returns>
        int SetCheck(int Id, int CancleOrIntro);
 
        /// <summary>
        /// 字段更新
        /// </summary>
        /// <param name="Upfilter">不需要加“Set”关键字，更新的字段及值,不能为空值</param>
        /// <param name="filter">条件</param>
        void filterUpdate(string Upfilter,string filter);


        /// <summary>
        /// 设置背景音乐
        /// </summary>
        /// <param name="Id"></param>
        /// <param name="MusicId"></param>
        /// <returns></returns>
        int SetMusic(int Id, int MusicId);
    }
}
